package com.mail.anteater.bean;

public enum Type {
	SYSTEM_MESSAGE,
	PERSONAL,
	UNDEFINED;
	
	public static Type getStorable(String ty) {
		Type typ = null;
		try {
			typ = Type.valueOf(ty.toUpperCase());
		} catch (IllegalArgumentException ex) {
			typ = Type.UNDEFINED;
		}
		return typ;
	}
}
